.row
  .col-md-8
    .panel.panel-default
      .panel-heading
        = "Organization"
      .panel-body
        dl.dl-horizontal
          dt Author Name
          dd = @author.name
          dt Email
          dd = @author.email
          dt Phone
          dd = @author.phone
          dt Address
          dd = @author.address
          dt City
          dd = @author.city
          dt Zip
          dd = @author.zip
          dt Country
          dd = @author.country
        = link_to "Edit", edit_author_path, class: "btn btn-default" 
        = link_to "Home", authors_path, class: "btn btn-default" 
  .col-md-4
    .panel.panel-default
      .panel-heading
        = "Settings"
      .panel-body
        p This is a settings panel
.row
  .col-md-12
    .panel.panel-default
      .panel-heading
        | Books 
      .panel-body
        = link_to "New", new_book_path(:author_id => @author.id), class: "btn btn-default" 
      == grid(@books_grid) do |g|
        - g.column name: 'ID', attribute: 'id', filter: false
        - g.column name: 'Book Title', attribute: 'name'
        - g.column name: 'ISBN', attribute: 'isbn'
        - g.column name: 'Actions' do |o| link_to "View" , book_path(:id => o.id), class: "btn btn-default" end

            